/*
 * DataDef.h
 *
 *  Created on: May 27, 2011
 *      Author: stud
 */

#ifndef DATADEF_H_
#define DATADEF_H_


typedef union
{
	unsigned short			Word;
	struct
	{
		unsigned char		ByteLo;
		unsigned char		ByteHi;
	} Bytes;

	struct
	{
		unsigned char		bit0	: 1;
		unsigned char		bit1	: 1;
		unsigned char		bit2	: 1;
		unsigned char		bit3	: 1;
		unsigned char		bit4	: 1;
		unsigned char		bit5	: 1;
		unsigned char		bit6	: 1;
		unsigned char		bit7	: 1;
		unsigned char		bit8	: 1;
		unsigned char		bit9	: 1;
		unsigned char		bit10	: 1;
		unsigned char		bit11	: 1;
		unsigned char		bit12	: 1;
		unsigned char		bit13	: 1;
		unsigned char		bit14	: 1;
		unsigned char		bit15	: 1;
	} Bits;
} sWord;

#endif /* DATADEF_H_ */
